<?php

namespace appcode\enum;

require_once("IEnumBaseClass.php");

class Language implements IEnumBaseClass {
    const Estonian = "ee";
    const English = "en";
    const Russian = "ru";

    public static function GetArray() {
        return array(1 => self::Estonian, 2 => self::English, 3 => self::Russian);
    }

    public static function GetById($id){
        return EnumBaseClassHelper::GetById(self::GetArray(), $id);
    }

    public static function GetByName($name) {
        return EnumBaseClassHelper::GetByName(self::GetArray(), $name);
    }

    public static function GetDefaultId() {
        return self::GetDefaultName();
    }

    public static function GetDefaultName() {
        return self::Estonian;
    }
}